import { PartialType } from '@nestjs/mapped-types';
import { CreateUserDto } from './create-user.dto';
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
export class UploadCreateUserDto extends PartialType(CreateUserDto) {
  @ApiProperty({
    type: 'string',
    format: 'binary',
    required: true,
  })
  file: Express.Multer.File;
  @IsNotEmpty({ message: '请输入用户名字' })
  @ApiProperty({ example: 'xp' })
  username: string;
  @IsNotEmpty({ message: '请输入用户名字' })
  @ApiProperty({ example: 18 })
  age: number;
}
